import Layout from '@/views/layout/Layout'
/**
 * @author qun.xu
 * @desc   系统管理路由
 * @date   2018-11-20
 */
const userRouter = {
  path: '/cms/user',
  component: Layout,
  meta: {
      title: '用户管理',
      icon: 'user',
      perm:'user'
  },
      children: [
          {
              path: 'editor',
              component: () => import('@/views/pages/user/UserEditor'),
              name: 'UserEditor2',
              meta: {title:'新增用户',noCache: true,icon:'user-editor',perm:'user:edit'}
          },
          {
            path: 'list',
            component: () => import('@/views/pages/user/UserList'),
            name: 'UserList',
            meta: { title: '用户列表',noCache:true,icon:'user-list',perm:'user:list'}
          }
          // ,
          // {
          //     path: 'truck/list',
          //     component: () => import('@/views/pages/user/truck/UserTruckList'),
          //     name: 'UserTruckList',
          //     meta: { title: 'userTruckList',noCache:true,icon:'admin'}
          // }
    ]
}
export default userRouter
